/**
 * 
 */
package teehee.Action;

import android.content.Context;
import teehee.DB.DB;
import teehee.Manager.WodPageManager;

/**
 * Conatains methods to convert a String to and from a format that can be read by the database.
 * 
 * @author Shub
 *
 */
public class WodPageAction extends Action
{
	public static DB find(String ex)
	{
		return WodPageManager.find(ex);
	}
	
	public static boolean createEntry(Context ctx, String date, String reps, String time, String weights, String comments, DB entry)
	{
		return WodPageManager.createEntry(ctx,date, WodPageAction.convertToDbFormat(reps), time, 
				WodPageAction.convertToDbFormat(weights),WodPageAction.convertToDbFormat(comments),entry);
	}
}
